import request from '../request'

// 发送验证码
export const sendCode = (data) =>
  request({
    url: '/user/sendCode',
    method: 'POST',
    data
  })

// 注册
export const register = (data) =>
  request({
    url: '/user/register',
    method: 'POST',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data
  })

// login
export const login = (data) =>
  request({
    url: '/user/login',
    method: 'POST',
    data
  })
